package me.zhengjie.modules.management.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

/**
 * @Author: yuchao.wang
 * @Date: 2020/12/5
 * @Description :教室主表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConferenceRoom {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "ID")
    private Integer roomId;

    @ApiModelProperty(value = "教室名称")
    public String roomName;

    @ApiModelProperty(value = "教室类型ID")
    public Integer typeId;

    @ApiModelProperty(value = "教室用途ID")
    /*public Integer purposeId;*/
    public String purposeId;

    @ApiModelProperty(value = "教室配置ID")
    public String equipId;

    @ApiModelProperty(value = "教室状态：1使用 0不在使用")
    public Integer status;

    @ApiModelProperty(value = "备注")
    public String remark;

    @ApiModelProperty(value = "能源费用")
    public BigDecimal cost;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 出参格式化
    @ApiModelProperty(value = "创建时间")
    public Timestamp createDateTime;

    @ApiModelProperty(value = "创建人工号")
    public String createUserId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 出参格式化
    @ApiModelProperty(value = "修改时间")
    public Timestamp modifyDateTime;

    @ApiModelProperty(value = "修改人工号")
    public String modifyUserId;

    @ApiModelProperty(value = "来源编号")
    public Integer sourceRoomId;

    @ApiModelProperty(value = "图片地址")
    public String url=null;

    @ApiModelProperty(value = "图片集合")
    private List<String> urls;
}
